import Vue from 'vue'
import VueRouter from 'vue-router'
import Register from  '../views/Register'
import Login from  '../views/Login'
import Userinfo from  '../views/Userinfo'
import Edit from '../views/Edit'
import Home from  '../views/Home'

Vue.use(VueRouter)

const routes = [
  {
    path:'/register',
    component:Register,
  },
  {
    path:'/login',
    component:Login,
  },
  {
    path:'/userinfo',
    component:Userinfo,
  },
  {
    path:'/edit',
    component:Edit,
  },
  {
    path:'/',
    component:Home,
  },
]

const router = new VueRouter({
  routes
})

export default router
